package jmine.tec.datadigester.positional.meta;

import java.beans.PropertyDescriptor;

import bancosys.tec.utils.date.Timestamp;

/**
 * @author lundberg
 */
public class PositionalTimestampFieldMetadata extends PositionalFieldMetadata {

    private final String format;

    /**
     * @param property property
     * @param description description
     * @param start start
     * @param size size
     * @param format format
     */
    public PositionalTimestampFieldMetadata(PropertyDescriptor property, String description, int start, int size, String format) {
        super(property, description, start, size);
        this.format = format;
    }

    /**
     * @return format
     */
    public String format() {
        return this.format;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected Class<?> getFieldType() {
        return Timestamp.class;
    }
}
